#include "led.h"

void LED_all_off(void)
{
    LED1 = 1;
    LED2 = 1;
    LED3 = 1;
    LED4 = 1;
}

void LED_all_on(void)
{
    LED1 = 0;
    LED2 = 0;
    LED3 = 0;
    LED4 = 0;
}

void LED_one_off(u8 LEDx)
{
    switch(LEDx)
    {
        case LED_1:
            LED1=0;
            break;
        case LED_2:
            LED2=0;
            break;
        case LED_3:
            LED3=0;
            break;
        case LED_4:
            LED4=0;
            break;
    }
}

void LED_one_on(u8 LEDx)
{
    switch(LEDx)
    {
        case LED_1:
            LED1=1;
            break;
        case LED_2:
            LED2=1;
            break;
        case LED_3:
            LED3=1;
            break;
        case LED_4:
            LED4=1;
            break;
    }
}